package cn.yang37.cons;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: ASN.1编码规范要求全大写
 * @class: PemTypeEnums
 * @author: yang37z@qq.com
 * @date: 2025/3/26 2:32
 * @version: 1.0
 */
@AllArgsConstructor
@Getter
public enum PemTypeEnums {

    /**
     * -----BEGIN CERTIFICATE-----
     */
    CERTIFICATE("CERTIFICATE", "X.509证书"),

    /**
     * -----BEGIN PRIVATE KEY-----
     */
    PRIVATE_KEY("PRIVATE KEY", "PKCS#8私钥"),

    /**
     * -----BEGIN RSA PUBLIC KEY-----
     */
    RSA_PUBLIC_KEY("RSA PUBLIC KEY", "PKCS#1公钥"),

    /**
     * -----BEGIN CERTIFICATE REQUEST--
     */
    CERTIFICATE_REQUEST("CERTIFICATE REQUEST", "CSR请求"),
    ;

    private final String type;

    private final String desc;
}
